package java50practice;

public class Practice13 {
	public static void main(String[] args) {
		PerfectSquare();
	}

	private static void PerfectSquare() {
		for (int number = 0; number <= 100000; number++) {
			double number2;
			double number3;
			number2 = Math.floor(Math.sqrt(number + 100));
			number3 = Math.floor(Math.sqrt(number2 + 168));
			if (Math.pow(number2, 2) == (number + 100) && Math.pow(number3, 2) == (number2 + 168)) {
				System.out.println(number);
			}
		}
	}
}
